package com.wanlian.entity;

import javax.persistence.*;
import java.sql.Timestamp;


@Entity
@Table(name = "tb_intchangedetail")
public class IntChangeDetail {
    /*
     *  兑换详情页面：
        接收地址：xxxxxxxxxxx
        兑换数量：1000INT
        实际到账：990INT
        gas费用：10 INT（运营平台可配置）
        实际gas费用：0.0001 ETH （以太坊网络实时返回最佳gas费用）
        以太坊TX:xxxxxxxxxxxx
        提交时间 picktime
        发起交易请求时间 requesttime
        兑换流水状态：已提交、兑换中、成功/失败
      * */
    @Id
    @GeneratedValue
    private int id;
    @Column(name = "shid")
    private int shid;
    @Column(name = "wallet")
    private String wallet;
    @Column(name = "intnum")
    private double intnum;
    @Column(name = "realarrival")
    private double realarrival;
    @Column(name = "gas")
    private float gas;
    @Column(name = "realgas")
    private String realgas;
    @Column(name = "ethtx")
    private String ethtx;
    @Column(name = "picktime")
    private Timestamp picktime;
    @Column(name = "requesttime")
    private Timestamp requesttime;
    @Column(name = "status")
    private int status;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getShid() {
        return shid;
    }

    public void setShid(int shid) {
        this.shid = shid;
    }

    public String getWallet() {
        return wallet;
    }

    public void setWallet(String wallet) {
        this.wallet = wallet;
    }


    public double getIntnum() {
        return intnum;
    }

    public void setIntnum(double intnum) {
        this.intnum = intnum;
    }

    public double getRealarrival() {
        return realarrival;
    }

    public void setRealarrival(double realarrival) {
        this.realarrival = realarrival;
    }

    public float getGas() {
        return gas;
    }

    public void setGas(float gas) {
        this.gas = gas;
    }

    public String getRealgas() {
        return realgas;
    }

    public void setRealgas(String realgas) {
        this.realgas = realgas;
    }

    public String getEthtx() {
        return ethtx;
    }

    public void setEthtx(String ethtx) {
        this.ethtx = ethtx;
    }

    public Timestamp getPicktime() {
        return picktime;
    }

    public void setPicktime(Timestamp picktime) {
        this.picktime = picktime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Timestamp getRequesttime() {
        return requesttime;
    }

    public void setRequesttime(Timestamp requesttime) {
        this.requesttime = requesttime;
    }
}
